package org.hydrakyoufeng.stuplatform.mapper;

import org.hydrakyoufeng.stuplatform.dto.AdminLoginDTO;
import org.hydrakyoufeng.stuplatform.vo.AdminLoginVO;
import org.hydrakyoufeng.stuplatform.vo.PermissionListVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {

    /**
     * 登录：根据手机号码和密码查询管理员
     * @param param
     * @return
     */
    AdminLoginVO login(AdminLoginDTO param);

    /**
     * 查询权限列表
     * @param id
     * @return
     */
    List<PermissionListVO> queryPermissionList(Integer id);

}
